
.sp-buy {
  overflow: hidden;
}

.img-box {
  border: 1px solid #e4e4e4;
  padding: 5px;
  > img {
    width: 100%;
    height: 100%;
  }
}

.sp-buy > div {
  margin-right: 30px;
  margin-bottom: 20px;
}

.to-buy {
  > h2 {
    line-height: 26px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 54px;
  }
  > h3 {
    margin: 25px 0;
    span {
      color: #ff0000;
      font-size: 16px;
      margin-right: 10px;
      font-weight: bold;
    }
  }
  > h4 {
    strong {
      margin-left: 15px;
      display: inline-block;
      width: 152px;
      height: 42px;
      border: 1px solid #dcdcdc;
      button {
        float: left;
        width: 40px;
        height: 40px;
        text-align: center;
        line-height: 40px;
        border: none;
        background-color: transparent;
        outline: none;
      }
      input {
        float: left;
        width: 70px;
        height: 40px;
        line-height: 40px;
        border: {
          left: 1px solid #dcdcdc;
          right: 1px solid #dcdcdc;
          top: none;
          bottom: none;
        }
      ;
        text-align: center;
      }
    }
    span {
      float: left;
      line-height: 42px;
    }
  }
  > h5 {
    margin: 25px 0;
    text-align: center;
    button {
      width: 260px;
      height: 40px;
      background-color: #fe5530;
      color: #fff;
      line-height: 40px;
      border: none;
      outline: none;
      border-radius: 3px;
    }
  }
  > h6 {
    line-height: 20px;
    i {
      margin: 0 5px 0 10px;
      vertical-align: text-bottom;
    }
  }
}

.tuWEn {
  > img {
    width: 100%;
  }
}

.payFor {
  display: none;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 1111;
  margin: auto;
  > h3 {
    height: 50px;
    line-height: 50px;
    padding: 0 20px;
    i {
      float: right;
      font-size: 24px;
      color: #999;
    }
  }
}

.m-address {
  > h3 {
    height: 36px;
    line-height: 36px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
  }
  > p {
    line-height: 22px;
    font-size: 14px;
    span {
      margin-right: 10px;
    }
  }
}

.m-payMode {
  margin-top: 20px;
  > h3 {
    overflow: hidden;
    line-height: 36px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
    strong {
      float: right;
      font-weight: normal;
      span {
        font-weight: bold;
        color: #f00;
      }
    }
  }
  >select{
    margin-top: 10px;
    width: 100%;
    height: 40px;
    border: 1px solid #e5e5e5;
    padding-left: 10px;
  }
}

.m-password{
  margin-top: 20px;
  >h3{
    height: 36px;
    line-height: 36px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
  }
  >input{
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding-left: 10px;
  }
}

.toPay{
  width: 100%;
  height: 40px;
  line-height: 40px;
  background: #fe5530;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  border: none;
}

@media screen and (min-width: 1380px) {
  .sp-buy > div {
    float: left;
    width: 500px;
    height: 385px;
  }
}

@media (min-width: 768px) and (max-width: 1379px) {
  .sp-buy > div {
    float: left;
    width: 350px;
    height: 270px;
  }
}

@media screen and (max-width: 767px) {
  .sp-buy > div {
    width: 100%;
    height: 300px;
  }
  .payFor {
    width: 80%;
    height: 450px;
    form > div {
      padding: 0 15px;
    }
  }
  .toPay{
    margin-top: 25px;
  }
}

@media screen and (min-width: 768px) {
  .payFor {
    width: 700px;
    height: 500px;
    form > div {
      padding: 0 50px;
    }
  }
  .toPay{
    margin-top: 45px;
  }
}